Enabling SSL encryption (https)
Enabling SSL on the server allows you to use encrypted traffic between the server, users and screens. To use https the server must be configured with a fully qualified domain name matching the certificate used.
Using the Server Installer (11.26.9 and later)
From version 11.26.9, the Server Installer guides you through the switch to https, with checks at each step.
- On the server, find Smartsign Server Installer - Advanced Settings in the start menu and launch it.
- Under HTTPS Configuration, click Configure HTTPS.
- Step 1. Make sure Smartsign works on HTTP — click Check server and confirm that you can sign in to the Publisher and that the server and its players work as expected. Never switch a server that does not work on http, problems are much harder to find after the switch.
- Step 2. Install a certificate and add an HTTPS binding
- Get a certificate for your server's hostname from a public certificate authority. A certificate from an internal certificate authority only works on players where that certificate authority can be installed as trusted, generally only Windows and Android.
- Import the certificate with its private key into Local Computer > Personal (run
certlm.msc), and its intermediate certificates into Local Computer > Intermediate Certification Authorities. - In IIS Manager, open Sites > Smartsign > Bindings and add a binding of type https on port 443, leave Host name empty, and select the certificate. A host name on the binding breaks the server. Keep the existing http binding.
- Click Check certificate and fix any warnings.
- Step 3. Switch to HTTPS — click Switch to HTTPS. This stops the Smartsign service, backs up the configuration, turns on https in all configuration files and starts the service again. It takes 1-2 minutes.
- Step 4. Verify that Smartsign works on HTTPS — click Check server, then open the Publisher and sign in. Smartsign ID can take a minute after the restart before it answers on https. Check that your players come back online. Players that stay offline may not trust the certificate.
- Step 5. Turn on HSTS (optional) — see HSTS below.
The same page can be used to switch back to http if needed.
Certificate renewal
Run Check certificate after every renewal, and whenever players stop connecting. Renewed certificates are often issued by a new intermediate certificate, and players reject the certificate when the server does not send the complete chain.
Import the renewed certificate and its intermediate certificates as described above, then edit the https binding in IIS Manager and select the renewed certificate.
HSTS
HSTS tells browsers to only open the server over https, which protects users from being redirected to an unencrypted connection. It applies to the server as well as the players API and URL proxy. Turn it on only when step 4 has passed and you will not switch back to http. The change applies the next time the Smartsign service is restarted.
HSTS cannot be undone from the server. A browser that has received it refuses to open the server and its subdomains over http for one year, also after HSTS is turned off or the server is switched back to http.
Using the configuration script (earlier versions)
To configure SSL, you must edit several configuration files. For your convenience we provide a PowerShell script that does it for you. It's available in the tools folder where you have installed Smartsign server.
- Get a trusted SSL certificate from a public certificate authority. (Self-Signed certificates are not recommended and are not supported by most players/screens)
- Install the certificate in IIS and add a binding to the Smartsign website. Do not configure a hostname binding, the hostname must be left empty. Use standard https port 443. Make sure to also install the certificate for the Intermediate CA that issued the certificate to have a complete chain.
- Stop the Smartsign Server 10 service.
- Open a PowerShell window as admin.
- Change directory to the tools folder of your Smartsign installation. The default location is "C:\Program Files\Smartsign Server 10\tools".
- Run the Smartsign-Configure-https.ps1 script.
- When prompted, input the path to your Smartsign server 10 installation. The default location is "C:\Program Files\Smartsign Server 10".
- Then input true, to enable https, or false, to disable https.
- The script will make a backup copy of the config files and then update them.
- Once completed you can start the Smartsign Server 10 service again.
- Done.